from flask import Flask, make_response, request

app = Flask(__name__)

@app.route('/setcookie')
def setcookies():
    resp = make_response('success')
    resp.set_cookie('user', 'admin', max_age= 3600)
    return resp

@app.route('/getcookies')
def getcookies():
    cookie = request.cookies.get('user')
    return f'this is {cookie}'

@app.route('/delcookies')
def delete_cookie():
    resp = make_response('success')
    resp.delete_cookie('user')
    return resp


if __name__ == '__main__':
    app.run(debug=True)